
function baseObject_set(name){
    var x = drawList.add(name);
    return x;
}

function baseObject(){
	this.x = 0;
	this.y = 0;
	
	this.set = baseObject_set;
	this.drawID = 0;
}

function derivedObject(){};
derivedObject.prototype = new baseObject();


var steve = {
    x:128,
    y:64,
	drawID: drawList.add("images/slow.png")
}

var bob = new derivedObject();
bob.set("images/hero.png");

var joe = new derivedObject();

joe.drawID = joe.set("image/monster.png");

//var main = function () {


//    drawList.draw(bob);
//    drawList.draw(steve);
//    drawList.draw(joe);

//};

//setInterval(main, 1); // Execute as fast as possible
